﻿using System;
using System.Windows.Forms;

namespace Wage
{
    public partial class Add : Form
    {
        public Add()
        {
            InitializeComponent();
        }

        private WageServices wageServices;
        private async void textBox1_TextChanged(object sender, EventArgs e)
        {
            //处理数据 wageServices
            var res = await wageServices.FormatAsync(textBox1.Text);
            listboxShow.Items.Clear();
            res.ForEach(s =>
            {
                listboxShow.Items.Add(new SalaryShow(s));
            });


            //var ss = WageCalculation.Calculation(res);



            int a = 0;
        }

        private void Add_Load(object sender, EventArgs e)
        {
            wageServices = new WageServices();
        }
    }
}
